package com.entity;

/**
 * @Author: 冷俊杰
 * @Description: 购物车
 * @DateTime: 2022/6/22 10:53
 **/
public class shoppingcar {
    private Integer ShoppingCartID;//购物车ID
    private String goods_img;//商品图片
    private Integer goods_price;//商品单价
    private Integer price;//商品总价
    private String goods_name;//商品名称
    private Integer id;//商品表外键

    public shoppingcar(Integer shoppingCartID, String goods_img, Integer goods_price, Integer price, String goods_name, Integer id) {
        ShoppingCartID = shoppingCartID;
        this.goods_img = goods_img;
        this.goods_price = goods_price;
        this.price = price;
        this.goods_name = goods_name;
        this.id = id;
    }

    public shoppingcar(String goods_img, Integer goods_price, Integer price, String goods_name, Integer id) {
        this.goods_img = goods_img;
        this.goods_price = goods_price;
        this.price = price;
        this.goods_name = goods_name;
        this.id = id;
    }

    public shoppingcar() {
    }

    public Integer getShoppingCartID() {
        return ShoppingCartID;
    }

    public void setShoppingCartID(Integer shoppingCartID) {
        ShoppingCartID = shoppingCartID;
    }

    public String getGoods_img() {
        return goods_img;
    }

    public void setGoods_img(String goods_img) {
        this.goods_img = goods_img;
    }

    public Integer getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(Integer goods_price) {
        this.goods_price = goods_price;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public Integer id() {
        return id;
    }

    public void setQuantity(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "shoppingcar{" +
                "ShoppingCartID=" + ShoppingCartID +
                ", goods_img='" + goods_img + '\'' +
                ", goods_price=" + goods_price +
                ", price=" + price +
                ", goods_name='" + goods_name + '\'' +
                ", id=" + id +
                '}';
    }
}
